import { createI18n } from 'vue-i18n'
import bx from "../lang/module/bx";
import English from "../lang/module/en";
const message = {
  Chinese: {},
  en: {
    ...English
  },
  pt: {
    ...bx,
  },
};
// let lang:any=JSON.parse(localStorage.getItem('lang'))
const i18n = createI18n({
    legacy: false,
    globalInjection: true,
    locale:'en',
    warnHtmlMessage: false,
    messages: message
})

export default defineNuxtPlugin(nuxtApp => {
    nuxtApp.vueApp.use(i18n);
})
